import request from '@/utils/request'

//新增团体信息
export function addOtherGroups(data) {
    return request({
      url: '/merchant/association/v1',
      method: 'post',
      data
    })
}
//查询团体列表
export function otherGroupsList(params) {
    return request({
        url: `/merchant/association/v1/list`,
        method: 'get',
        params
    })
}

//启禁用团体
export function associationStatus(params) {
    return request({
        url: `/merchant/association/v1/associationStatus`,
        method: 'put',
        params
    })
}

//团体信息详情
export function associationDetail(params) {
    return request({
        url: `/merchant/association/v1/detail`,
        method: 'get',
        params
    })
}

// 编辑团体信息
export function editAssociation(data) {
    return request({
      url: `/merchant/association/v1`,
      method: 'put',
      data
    })
}

// 重置密码
export function resetPass(params) {
    return request({
      url: `/merchant/association/v1/reset`,
      method: 'put',
      params
    })
}